package com.lin.server.impl;

import com.lin.dataobject.Banner;
import com.lin.repository.BannerRepository;
import com.lin.server.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2017/9/25.
 */
@Service
public class BannerServiceImpl implements BannerService {
    @Autowired
    private BannerRepository repository;
    @Override
    public List<Banner> findAllEffective() {
        return repository.findAllByStatus(1);
    }
}
